/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __WORLD_MAP_H__
#define __WORLD_MAP_H__

#include "MapTileManager.h"

namespace PQGame
{
	/*Represent a part of world.
	*/
	class WorldMap
	{
	public:
		typedef std::map<int,WorldMap*> WorldMapMap;
	protected:
		WorldMap(int index);
	public:
		static WorldMap* getWorldMap(int index);
		void enterTile(int col,int row);

		float getTileXPos();
		float getTileZPos();
		float getTileMaxYPos();

		void update(float deltaT);
	private:
		static WorldMapMap _maps;
		int _index;//
		int _row;
		int _col;//current col in
		bool _outBound;

		MapTileManager* _tileManager;

	};
}

#endif
